home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / CIncludes / FileTransferTools.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-12  |  2.7 KB  |  145 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        FileTransferTools.h
  3.  
  4.      Contains:    CommToolbox File Transfer Tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1988-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __FILETRANSFERTOOLS__
  19. #define __FILETRANSFERTOOLS__
  20.  
  21. #ifndef __CONDITIONALMACROS__
  22. #include <ConditionalMacros.h>
  23. #endif
  24. #ifndef __DIALOGS__
  25. #include <Dialogs.h>
  26. #endif
  27. #ifndef __FILETRANSFERS__
  28. #include <FileTransfers.h>
  29. #endif
  30.  
  31.  
  32.  
  33. #if PRAGMA_ONCE
  34. #pragma once
  35. #endif
  36.  
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40.  
  41. #if PRAGMA_IMPORT
  42. #pragma import on
  43. #endif
  44.  
  45. #if PRAGMA_STRUCT_ALIGN
  46.     #pragma options align=mac68k
  47. #elif PRAGMA_STRUCT_PACKPUSH
  48.     #pragma pack(push, 2)
  49. #elif PRAGMA_STRUCT_PACK
  50.     #pragma pack(2)
  51. #endif
  52.  
  53.  
  54. enum {
  55.                                                                 /* DEFs */
  56.     fdefType                    = FOUR_CHAR_CODE('fdef'),
  57.     fsetType                    = FOUR_CHAR_CODE('fset'),
  58.     fvalType                    = FOUR_CHAR_CODE('fval'),
  59.     flocType                    = FOUR_CHAR_CODE('floc'),
  60.     fscrType                    = FOUR_CHAR_CODE('fscr'),
  61.     fbndType                    = FOUR_CHAR_CODE('fbnd'),
  62.     fverType                    = FOUR_CHAR_CODE('vers')
  63. };
  64.  
  65.  
  66. enum {
  67.                                                                 /* control */
  68.     ftInitMsg                    = 0,
  69.     ftDisposeMsg                = 1,
  70.     ftSuspendMsg                = 2,
  71.     ftResumeMsg                    = 3,
  72.     ftMenuMsg                    = 4,
  73.     ftEventMsg                    = 5,
  74.     ftActivateMsg                = 6,
  75.     ftDeactivateMsg                = 7,
  76.     ftGetErrorStringMsg            = 8,
  77.     ftAbortMsg                    = 52,
  78.     ftStartMsg                    = 100,
  79.     ftExecMsg                    = 102,
  80.     ftSendMsg                    = 103,
  81.     ftReceiveMsg                = 104
  82. };
  83.  
  84.  
  85. enum {
  86.                                                                 /* setup */
  87.     ftSpreflightMsg                = 0,
  88.     ftSsetupMsg                    = 1,
  89.     ftSitemMsg                    = 2,
  90.     ftSfilterMsg                = 3,
  91.     ftScleanupMsg                = 4
  92. };
  93.  
  94.  
  95. enum {
  96.                                                                 /* validate */
  97.     ftValidateMsg                = 0,
  98.     ftDefaultMsg                = 1
  99. };
  100.  
  101.  
  102. enum {
  103.                                                                 /* scripting */
  104.     ftMgetMsg                    = 0,
  105.     ftMsetMsg                    = 1
  106. };
  107.  
  108.  
  109. enum {
  110.                                                                 /* localization */
  111.     ftL2English                    = 0,
  112.     ftL2Intl                    = 1
  113. };
  114.  
  115. struct FTSetupStruct {
  116.     DialogPtr                         theDialog;                    /* the dialog form the application */
  117.     short                             count;                        /* first appended item */
  118.     Ptr                             theConfig;                    /* the config record to setup */
  119.     short                             procID;                        /* procID of the tool */
  120. };
  121. typedef struct FTSetupStruct FTSetupStruct;
  122.  
  123. typedef FTSetupStruct *                    FTSetupPtr;
  124.  
  125. #if PRAGMA_STRUCT_ALIGN
  126.     #pragma options align=reset
  127. #elif PRAGMA_STRUCT_PACKPUSH
  128.     #pragma pack(pop)
  129. #elif PRAGMA_STRUCT_PACK
  130.     #pragma pack()
  131. #endif
  132.  
  133. #ifdef PRAGMA_IMPORT_OFF
  134. #pragma import off
  135. #elif PRAGMA_IMPORT
  136. #pragma import reset
  137. #endif
  138.  
  139. #ifdef __cplusplus
  140. }
  141. #endif
  142.  
  143. #endif /* __FILETRANSFERTOOLS__ */
  144.  
  145.